package com.vvv.shortlink.project.constant;

/**
 * @author vvv
 * @date 2024/2/18 15 13
 * discription
 */
public class RedisKeyConstant {

    /**
     * 短链接跳转原始链接key，
     */
    public static final String SHORT_LINK_GOTO_ORIGIN_KEY = "short-link:goto:originalUrl:";

    /**
     * 短链接跳转原始链接锁key，
     */
    public static final String LOCK_SHORT_LINK_GOTO_ORIGIN_KEY = "short-link:lock:goto:originalUrl:";

    /**
     * 短链接跳转原始链接，缓存穿透空值判断key
     */
    public static final String SHORT_LINK_GOTO_IS_NULL_KEY = "short-link:goto:isNull:";

    /**
     * 短链接监控相关key
     */
    public static final String STATS_UV_KEY = "short-link:stats:uv:";

    public static final String STATS_UIP_KEY = "short-link:stats:uip:";

    /**
     * mq幂等key
     */
    public static final String MQ_IDEMPOTENT_KEY = "short-link:mq:idempotent:";
}
